Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select newly added nodes on drag and drop in 2D viewport #84356

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

viksl
Copy link
Contributor

@viksl viksl commented Nov 2, 2023

Implements this proposal: godotengine/godot-proposals#8282 for 2D viewport.

Testing:
Create couple scenes of different types which can be added to a 2D scene and save them as separate. Try to drag and drop these directly in to the viewport (not the scene tree tab that's a different thing and works ok), one by one, multiple files, have some root node selected or not, do the same with images/icons in FileSystem.
What you should see with this change is that the newly added node(s) will be selected immediately so you should be able to work with them in the viewport.
Test with Undo/Redo too please.

Known issues:
When undoing the orange selection borders remain on the screen until you release the undo shortcut or press for example a mouse button. So far it doesn't seem to be a functional issue as far as I can tell. I don't know what to do about it, I'm open to opinions and suggestions.


Related 3D PR: #84347

@akien-mga akien-mga modified the milestones: 4.x, 4.3 Feb 14, 2024
@akien-mga akien-mga merged commit 994dd21 into godotengine:master Feb 15, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants